package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ClassManageMapper;
import com.ruoyi.system.domain.ClassManage;
import com.ruoyi.system.service.IClassManageService;

/**
 * 班级一览Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-05
 */
@Service
public class ClassManageServiceImpl implements IClassManageService 
{
    @Autowired
    private ClassManageMapper classManageMapper;

    /**
     * 查询班级一览
     * 
     * @param classId 班级一览主键
     * @return 班级一览
     */
    @Override
    public ClassManage selectClassManageByClassId(Integer classId)
    {
        return classManageMapper.selectClassManageByClassId(classId);
    }

    /**
     * 查询班级一览列表
     * 
     * @param classManage 班级一览
     * @return 班级一览
     */
    @Override
    public List<ClassManage> selectClassManageList(ClassManage classManage)
    {
        return classManageMapper.selectClassManageList(classManage);
    }

    /**
     * 新增班级一览
     * 
     * @param classManage 班级一览
     * @return 结果
     */
    @Override
    public int insertClassManage(ClassManage classManage)
    {
        return classManageMapper.insertClassManage(classManage);
    }

    /**
     * 修改班级一览
     * 
     * @param classManage 班级一览
     * @return 结果
     */
    @Override
    public int updateClassManage(ClassManage classManage)
    {
        return classManageMapper.updateClassManage(classManage);
    }

    /**
     * 批量删除班级一览
     * 
     * @param classIds 需要删除的班级一览主键
     * @return 结果
     */
    @Override
    public int deleteClassManageByClassIds(Integer[] classIds)
    {
        return classManageMapper.deleteClassManageByClassIds(classIds);
    }

    /**
     * 删除班级一览信息
     * 
     * @param classId 班级一览主键
     * @return 结果
     */
    @Override
    public int deleteClassManageByClassId(Integer classId)
    {
        return classManageMapper.deleteClassManageByClassId(classId);
    }
}
